<template>
  <view class="topTitle">
    <i v-if="isBack" class="goBack" @tap="goBack(1)"></i>
    <view class="title"> {{ title }} </view>
    <view class="right">
      <slot name="right" />
    </view>
  </view>
</template>

<script setup lang="ts">
import { ref } from "vue";
defineProps({
  title: {
    type: String,
    default: "",
  },
  isBack: {
    type: Boolean,
    default: true,
  },
});
</script>
